﻿<%@ Page Title="" Language="C#" MasterPageFile="~/EnMain.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="SBACN.WebSite.En.Index" %>
<%@ Import Namespace="SBACN.WebSite.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<!--主内容区-->
	<div id="wrapper">
		<div id="container">
			<div id="pic_container" clientidmode="Static" runat="server">
				<div class="play">
					<ul>
						<li class="textbg"></li>
						<li class="text"></li>
						<li class="num" id="numCtrl" runat="server" clientidmode="Static"></li>
						<li class="content">
					<asp:Repeater ID="rpt_PicNews" runat="server">
						<ItemTemplate>
							<a title="<%# Eval("Title")%>" href="/En/ComDetail.aspx?st=<%# Eval("Type")%>&id=<%# Eval("ID")%>"
								target="_blank">
								<img src="<%# Eval("MainImageUrl")%>" alt="<%# Eval("Title").ToString().CutTo(96,90)%>" />
							</a>
						</ItemTemplate>
					</asp:Repeater>
						</li>
					</ul>
				</div>
			</div>
			<div id="sba_box">
				<div id="sba_header">
					<div id="sbatitle">
						<img src="/enimages/title_icon.gif" width="14" height="14" alt="" />&nbsp;About SBA
					</div>
					<div id="sbamore">
						<a href="/En/ComDetail.aspx?st=00010001" target="_blank">More>></a></div>
				</div>
				<div id="sbaBorder">
					<img src="/enimages/sba_img.jpg" width="50" alt="" height="68" />
					<%= ABoutSBA.CutTo(388, 380)%>
				</div>
			</div>
			<div style="clear: both;">
			</div>
		</div>
		<div id="centerlinkdiv1">
			<div id="leftlinkdiv1">
				<div id="topbox">
					<div id="topbox_top">
						<div id="topbox_toptitle">
							<img src="/enimages/title_icon.gif" width="14" height="14" alt="" />&nbsp;News</div>
						<div id="topbox_more">
							<a href="/En/ComList.aspx?st=00020001" target="_blank">More>></a></div>
					</div>
					<div id="topbox_bg">
				<asp:Repeater ID="rpt_impNews" runat="server">
					<ItemTemplate>
						<div id="listdiv">
							<div id="listdiv_title">
								<a href="/En/ComDetail.aspx?id=<%# Eval("ID")%>&st=<%# Eval("Type")%>">
									<%# Eval("Title").ToString().CutTo(45,40)%></a>&nbsp;<%# (DateTime.Now - Convert.ToDateTime(Eval("CreateDate"))).Days < 6 ? "<img src=\"/enimages/new.gif\" width=\"20\" height=\"11\" />" : ""%><br />
								<%# Eval("Summary").ToString().CutTo(100,95)%>
							</div>
							<div id="listdiv_date">
								<%# Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy/MM/dd")%></div>
						</div>
					</ItemTemplate>
				</asp:Repeater>
					</div>
				</div>
			</div>
			<div id="rightlinkdiv1">
				<div id="topboxr" runat="server" clientidmode="Static">
					<div id="topboxr_top">
						<div id="topbox_toptitle">
							<img src="/enimages/title_icon.gif" width="14" alt="" height="14" />&nbsp;Committees of SBA
						</div>
						<div id="topbox_more">
							<a href="/En/ComList.aspx?st=000300010002" target="_blank">More>></a></div>
					</div>
					<!-- picrotate_left start -->
					<div class="blk_18">
						<a onmouseup="ISL_StopDown_1()" class="LeftBotton" onmousedown="ISL_GoDown_1()" onmouseout="ISL_stopDown_1()" href="javascript:void(0);" target="_self"></a>
						<div class="pcont" id="ISL_Cont_1">
							<div class="ScrCont">
								<div id="List1_1">
								<!-- piclist begin -->
								<asp:Repeater ID="rpt_Committee" runat="server">
								<ItemTemplate>
									<a class="pl" href='/En/ComDetail.aspx?id=<%# Eval("ID")%>&st=<%# Eval("Type")%>' target="_blank">
										<img src='/enimages/committees_img<%# (Container.ItemIndex + 1).ToString("#00") %>.jpg' />
										<%# Eval("Title").ToString().CutTo(40,35)%>
										<div class="fl">
											<%# Eval("Summary").ToString().CutTo(120,115)%>
										</div>
									</a>
								</ItemTemplate>
								</asp:Repeater>
								<!-- piclist end -->
								</div>
								<div id="List2_1">
								</div>
							</div>
						</div>
						<a onmouseup="ISL_StopUp_1()" class="RightBotton" onmousedown="ISL_GoUp_1()" onmouseout="ISL_StopUp_1()" href="javascript:void(0);" target="_self"></a>
					</div>
					<script type="text/javascript">
						var Speed_1 = 50; //速度(毫秒)
						var Space_1 = 8; //每次移动(px)
						var PageWidth_1 = 164 * 1; //翻页宽度
						var interval_1 = 5000; //翻页间隔
						var fill_1 = 0; //整体移位
						var MoveLock_1 = false;
						var MoveTimeObj_1;
						var MoveWay_1 = "right";
						var Comp_1 = 0;
						var AutoPlayObj_1 = null;
						function GetObj(objName) { if (document.getElementById) { return eval('document.getElementById("' + objName + '")') } else { return eval('document.all.' + objName) } }
						function AutoPlay_1() { clearInterval(AutoPlayObj_1); AutoPlayObj_1 = setInterval('ISL_GoDown_1();ISL_StopDown_1();', interval_1) }
						function ISL_GoUp_1() { if (MoveLock_1) return; clearInterval(AutoPlayObj_1); MoveLock_1 = true; MoveWay_1 = "left"; MoveTimeObj_1 = setInterval('ISL_ScrUp_1();', Speed_1); }
						function ISL_StopUp_1() {
							if (MoveWay_1 == "right") { return }; clearInterval(MoveTimeObj_1); if ((GetObj('ISL_Cont_1').scrollLeft - fill_1) % PageWidth_1 != 0) { Comp_1 = fill_1 - (GetObj('ISL_Cont_1').scrollLeft % PageWidth_1); CompScr_1() } else { MoveLock_1 = false }
							AutoPlay_1()
						}
						function ISL_ScrUp_1() {
							if (GetObj('ISL_Cont_1').scrollLeft <= 0) { GetObj('ISL_Cont_1').scrollLeft = GetObj('ISL_Cont_1').scrollLeft + GetObj('List1_1').offsetWidth }
							GetObj('ISL_Cont_1').scrollLeft -= Space_1
						}
						function ISL_GoDown_1() { clearInterval(MoveTimeObj_1); if (MoveLock_1) return; clearInterval(AutoPlayObj_1); MoveLock_1 = true; MoveWay_1 = "right"; ISL_ScrDown_1(); MoveTimeObj_1 = setInterval('ISL_ScrDown_1()', Speed_1) }
						function ISL_StopDown_1() {
							if (MoveWay_1 == "left") { return }; clearInterval(MoveTimeObj_1); if (GetObj('ISL_Cont_1').scrollLeft % PageWidth_1 - (fill_1 >= 0 ? fill_1 : fill_1 + 1) != 0) { Comp_1 = PageWidth_1 - GetObj('ISL_Cont_1').scrollLeft % PageWidth_1 + fill_1; CompScr_1() } else { MoveLock_1 = false }
							AutoPlay_1()
						}
						function ISL_ScrDown_1() {
							if (GetObj('ISL_Cont_1').scrollLeft >= GetObj('List1_1').scrollWidth) { GetObj('ISL_Cont_1').scrollLeft = GetObj('ISL_Cont_1').scrollLeft - GetObj('List1_1').scrollWidth }
							GetObj('ISL_Cont_1').scrollLeft += Space_1
						}
						function CompScr_1() {
							if (Comp_1 == 0) { MoveLock_1 = false; return }
							var num, TempSpeed = Speed_1, TempSpace = Space_1; if (Math.abs(Comp_1) < PageWidth_1 / 2) { TempSpace = Math.round(Math.abs(Comp_1 / Space_1)); if (TempSpace < 1) { TempSpace = 1 } }
							if (Comp_1 < 0) {
								if (Comp_1 < -TempSpace) { Comp_1 += TempSpace; num = TempSpace } else { num = -Comp_1; Comp_1 = 0 }
								GetObj('ISL_Cont_1').scrollLeft -= num; setTimeout('CompScr_1()', TempSpeed)
							} else {
								if (Comp_1 > TempSpace) { Comp_1 -= TempSpace; num = TempSpace } else { num = Comp_1; Comp_1 = 0 }
								GetObj('ISL_Cont_1').scrollLeft += num; setTimeout('CompScr_1()', TempSpeed)
							}
						}
						function picrun_ini() {
							GetObj("List2_1").innerHTML = GetObj("List1_1").innerHTML;
							GetObj('ISL_Cont_1').scrollLeft = fill_1 >= 0 ? fill_1 : GetObj('List1_1').scrollWidth - Math.abs(fill_1);
							GetObj("ISL_Cont_1").onmouseover = function () { clearInterval(AutoPlayObj_1) }
							GetObj("ISL_Cont_1").onmouseout = function () { AutoPlay_1() }
							AutoPlay_1();
						}
						picrun_ini()
					</script>
					<!-- picrotate_left end -->
				</div>
			</div>
		</div>
	</div>
	<div style="clear: both;">
	</div>
	<div id="img_link">
		<a href="javascript:void(0)" id="linkXW" runat="server"><img src="/enimages/img_xiaowei.jpg" alt="" /></a><a href="javascript:void(0)" id="linkYT" runat="server"><img src="/enimages/img_yintuan.jpg" alt="" /></a><a href="javascript:void(0)" id="linkZEF" runat="server"><img src="/enimages/img_zef.jpg" alt="" /></a><a href="javascript:void(0)" id="linkAM" runat="server"><img src="/enimages/img_am.jpg" alt="" /></a><a href="javascript:void(0)" id="linkSmallBlog" runat="server"><img src="/enimages/img_miniblog0.jpg" alt="" /></a>
	</div>
	<script type="text/javascript">
		var t = n = 0, count = $jqy(".content a").size();
		$jqy(function () {
			var play = ".play";
			var playText = ".play .text";
			var playNum = ".play .num a";
			var playConcent = ".play .content a";

			$jqy(playConcent + ":not(:first)").hide();
			$jqy(playText).html($jqy(playConcent + ":first").find("img").attr("alt"));
			$jqy(playNum + ":first").addClass("on");
			$jqy(playText).click(function () { window.open($jqy(playConcent + ":first").attr('href'), "_blank") });
			$jqy(playNum).click(function () {
				var i = $jqy(this).text() - 1;
				n = i;
				if (i >= count) return;
				$jqy(playText).html($jqy(playConcent).eq(i).find("img").attr('alt'));
				$jqy(playText).unbind().click(function () { window.open($jqy(playConcent).eq(i).attr('href'), "_blank") })
				$jqy(playConcent).filter(":visible").hide().parent().children().eq(i).fadeIn(1200);
				$jqy(this).removeClass("on").siblings().removeClass("on");
				$jqy(this).removeClass("on2").siblings().removeClass("on2");
				$jqy(this).addClass("on").siblings().addClass("on2");
			});
			t = setInterval("showAuto()", 5000);
			$jqy(play).hover(function () { clearInterval(t) }, function () { t = setInterval("showAuto()", 5000); });
		})
		function showAuto() {
			n = n >= (count - 1) ? 0 : ++n;
			$jqy(".num a").eq(n).trigger('click');
		}
	</script>
</asp:Content>
